<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<%
	ESKoreaProc forum = new ESKoreaProc();
	ArrayList lt = forum.getForumList();
%>    

<%@page import="sopt.engSearch.ESKoreaProc"%>
<%@page import="java.util.ArrayList"%>
<%@page import="comm.util.SoptHashMap"%>
<div id="forumBg">
	<div id="forumHead">
		ESKorea forum for everyone.
	</div>
	<div id="forumContent">
		<%if(lt!=null)
			for(int i=0;i<lt.size();i++){
				SoptHashMap hm = (SoptHashMap)lt.get(i);
				String shortUrl = forum.getShortUrl(request,hm.get("LOUNGE_SEQ").toString());
				%>
				<div style="border-bottom:1px solid #CDCDCD;">
					<div class="forumItems" >
						<div class="forumTitle" >
							<%=hm.get("LOUNGE_TITLE") %>
							<a href="javascript:viewForumContent('<%=hm.get("LOUNGE_SEQ")%>')">View content</a>
						</div>
						<div class="forumContent" id="forumContent_<%=hm.get("LOUNGE_SEQ")%>">
							<div>
								<span style="padding-right:5px;text-align:right;"><%=hm.get("LOUNGE_TITLE")%></span>
								<input type="button" value="close" onclick="javascript:closeForumContent('<%=hm.get("LOUNGE_SEQ")%>')"/>
							</div>
							<%=hm.get("LOUNGE_CONTENT").toString()%>
						</div>
						<span class="forumAuthor">by <a href="<%=hm.get("MEMBER_URL") %>" target="_blank"><%=hm.get("MEMBER_NICK") %></a></span>
						<div class="forumImg">
							<a href="<%=shortUrl %>" target="_blank"><%=shortUrl %></a>
							<a href="<%=hm.get("MEMBER_URL") %>" target="_blank"><img src="<%=hm.get("MEMBER_IMG") %>"/></a>
						</div>
						<div class="forumRegdate"><%=hm.get("LOUNGE_REGDATE") %></div>
						<div class="clear"></div>
					</div>
				</div>
			<%} %>
	</div>
</div>
